package vip.specimen.system.datasource.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * *@Author: 余浪人
 * *@Date：2021/3/25 11:08
 * *@Email:yulangren520@Gmail.com
 * *@QQ:1368419640
 **/
@Setter
@Getter
@Entity
@Table(name = "system_aliPay")
public class SystemAliPayEntity extends BaseEntity {
    @ApiModelProperty(value = "服务器地址")
    private String serverURL; // 服务器地址
    @ApiModelProperty(value = "AppID")
    private String appId; // AppID
    @Column(length = 2048)
    @ApiModelProperty(value = "应用私钥")
    private String appPrivateKey; // 应用私钥
    @Column(length = 1024)
    @ApiModelProperty(value = "应用公钥")
    private String appPublicKey; // 应用公钥
    @Column(length = 1024)
    @ApiModelProperty(value = "支付宝公钥")
    private String aliPayPublicKey; // 支付宝公钥
    @ApiModelProperty(value = "接口加密")
    private String contentEncryption; // 接口加密

    public SystemAliPayEntity() {
    }

    public SystemAliPayEntity(String serverURL, String appId, String appPrivateKey, String appPublicKey, String aliPayPublicKey, String contentEncryption) {
        this.serverURL = serverURL;
        this.appId = appId;
        this.appPrivateKey = appPrivateKey;
        this.appPublicKey = appPublicKey;
        this.aliPayPublicKey = aliPayPublicKey;
        this.contentEncryption = contentEncryption;
    }
}
